package com.httop.api;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * Created by osm_a100 on 2017/5/13.
 */
@Path("/hello")
public class SayHelloApi {
    @GET
    @Path("/")
    @Produces(MediaType.APPLICATION_JSON)
    public String sayHello(){
        return "Hello World!";
    }
    @GET
    @Path("/{param}")
    @Produces(MediaType.APPLICATION_JSON)
    public String sayHelloByName(@PathParam("param") String name){
        return "Hello "+ name;
    }
}
